from django.conf.urls import url
from django.contrib import admin
from . import views

from rest_framework.routers import DefaultRouter

urlpatterns = [
    url(r'^categories/(?P<pk>\d+)/$', views.GoodCategorieView.as_view()),
    url(r'^categories/(?P<pk>\d+)/skus/$', views.GoodsView.as_view()),
    url(r'^browse_histories/$', views.UserGoodsHistoryView.as_view()),

    # url(r'^browse_histories$', views.UserGoodsHistoryView.as_view()),
]

router = DefaultRouter()
router.register('skus/search', views.SKUIndexView, base_name='skus_search')
urlpatterns += router.urls
